package com.tancire.question.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 答题活动对象 train_activity
 *
 * @author tancire
 * @date 2024-10-10
 */
public class TrainActivity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 活动名称
     */
    @Excel(name = "活动名称")
    private String activityName;

    /**
     * 活动图
     */
    @Excel(name = "活动图")
    private String activityIcon;

    /**
     * 活动开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date activityStart;

    /**
     * 活动结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date activityEnd;

    /**
     * 活动状态 0 待开启 1 进行中 2 已结束
     */
    @Excel(name = "活动状态 0 待开启 1 进行中 2 已结束")
    private String activityStatus;

    /**
     * 结算状态
     */
    private Integer settlementStatus;

    /**
     * 金奖
     */
    @Excel(name = "金奖")
    private String goldAwardName;

    /**
     * 金奖图片
     */
    @Excel(name = "金奖图片")
    private String goldAwardIcon;

    /**
     * 银奖
     */
    @Excel(name = "银奖")
    private String silverAwardName;

    /**
     * 银奖图片
     */
    @Excel(name = "银奖图片")
    private String silverAwardIcon;

    /**
     * 铜奖
     */
    @Excel(name = "铜奖")
    private String bronzeAwardName;

    /**
     * 铜奖图片
     */
    @Excel(name = "铜奖图片")
    private String bronzeAwardIcon;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Long delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityIcon(String activityIcon) {
        this.activityIcon = activityIcon;
    }

    public String getActivityIcon() {
        return activityIcon;
    }

    public void setActivityStart(Date activityStart) {
        this.activityStart = activityStart;
    }

    public Date getActivityStart() {
        return activityStart;
    }

    public void setActivityEnd(Date activityEnd) {
        this.activityEnd = activityEnd;
    }

    public Date getActivityEnd() {
        return activityEnd;
    }

    public void setActivityStatus(String activityStatus) {
        this.activityStatus = activityStatus;
    }

    public String getActivityStatus() {
        return activityStatus;
    }

    public void setGoldAwardName(String goldAwardName) {
        this.goldAwardName = goldAwardName;
    }

    public String getGoldAwardName() {
        return goldAwardName;
    }

    public void setGoldAwardIcon(String goldAwardIcon) {
        this.goldAwardIcon = goldAwardIcon;
    }

    public String getGoldAwardIcon() {
        return goldAwardIcon;
    }

    public void setSilverAwardName(String silverAwardName) {
        this.silverAwardName = silverAwardName;
    }

    public String getSilverAwardName() {
        return silverAwardName;
    }

    public void setSilverAwardIcon(String silverAwardIcon) {
        this.silverAwardIcon = silverAwardIcon;
    }

    public String getSilverAwardIcon() {
        return silverAwardIcon;
    }

    public void setBronzeAwardName(String bronzeAwardName) {
        this.bronzeAwardName = bronzeAwardName;
    }

    public String getBronzeAwardName() {
        return bronzeAwardName;
    }

    public void setBronzeAwardIcon(String bronzeAwardIcon) {
        this.bronzeAwardIcon = bronzeAwardIcon;
    }

    public String getBronzeAwardIcon() {
        return bronzeAwardIcon;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public Integer getSettlementStatus() {
        return settlementStatus;
    }

    public void setSettlementStatus(Integer settlementStatus) {
        this.settlementStatus = settlementStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("activityName", getActivityName())
                .append("activityIcon", getActivityIcon())
                .append("activityStart", getActivityStart())
                .append("activityEnd", getActivityEnd())
                .append("activityStatus", getActivityStatus())
                .append("goldAwardName", getGoldAwardName())
                .append("goldAwardIcon", getGoldAwardIcon())
                .append("silverAwardName", getSilverAwardName())
                .append("silverAwardIcon", getSilverAwardIcon())
                .append("bronzeAwardName", getBronzeAwardName())
                .append("bronzeAwardIcon", getBronzeAwardIcon())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
